package com.triptogether.utils.db.models;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = UsersToTrip.TABLE_NAME)
public class UsersToTrip {

	public static final String TABLE_NAME = "UsersToTrip";

	@DatabaseField(generatedId = true)
	private long id;
	@DatabaseField(foreign = true)
	private User user;
	@DatabaseField(foreign = true)
	private Trip trip;
	@DatabaseField
	private Date dateJoined;

	public UsersToTrip() {}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Trip getTrip() {
		return trip;
	}

	public void setTrip(Trip trip) {
		this.trip = trip;
	}

	public Date getDateJoined() {
		return dateJoined;
	}

	public void setDateJoined(Date dateJoined) {
		this.dateJoined = dateJoined;
	}
}
